import { request } from '@/utils/T';
import { processAPI } from '@/constants/EnumAPI';
const { postJSON } = request;

/**
 * 登录
 * @param loginInfo
 * @param loginInfo.username
 * @param loginInfo.password
 * @returns {Promise}
 * @constructor
 */
export const Login = (loginInfo = { username: '', password: '' }) => postJSON(processAPI('/vue-admin-template/user/login'), loginInfo);
// export const Login = (loginInfo = { username: '', password: '' }) => postJSON('http://10.164.175.8:9528/dev-api/vue-admin-template/user/login', loginInfo);

/**
 * 登出
 * @returns {Promise}
 * @constructor
 */
export const Logout = () => postJSON(processAPI('/vue-admin-template/user/logout'));
